// 文章表
// 引入封装好的mongoose模块
const mongoose = require('../db');

// 规定article表内的数据类型
const Article = mongoose.Schema({
    title:String,
    content:String,
    time:String,
    classify:String,
    count:Number
})

// 创建article表
const article = mongoose.model('article',Article); 

// 引出去
module.exports = article;
